package com.evenmo.pojo;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class User2 implements Serializable{

	@DateTimeFormat(pattern="mm/dd/yyyy")
	private Date birthday;

	@DateTimeFormat(pattern="yyyy-mm-dd")
	private Date birthday2;
	public Date getBirthday() {
		return birthday;
	}

	public Date getBirthday2() {
		return birthday2;
	}

	public void setBirthday2(Date birthday2) {
		this.birthday2 = birthday2;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public User2(Date birthday) {
		super();
		this.birthday = birthday;
	}

	public User2() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "User2 [birthday=" + birthday + ", birthday2=" + birthday2 + "]";
	}
	
}
